<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSdkConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sdk_configs', function (Blueprint $table) {
            $table->id();
            $table->string('code')->unique()->comment('名称标识');
            $table->string('name')->comment('sdk名称');
            $table->string('app_id')->default('')->comment('渠道提供的APPID');
            $table->string('app_key')->default('')->comment('渠道提供的KEY');
            $table->string('dispatch_api')->default('')->comment('下发地址');
            $table->string('game_key')->default('')->comment('游戏key');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sdk_configs');
    }
}
